package com.example.study;

/**
 * @Author : fang.com
 * @CreatTime : 2021-03-30 17:31
 * @Description :
 * @Version :  0.0.1
 */
public class ThreadDemo {

    private volatile int a = 0;
    private int b = 0;
    private int c = 0;

    public void init() {
        if (a == 1) {
            b++;
            c++;
        } else {
            init();
        }
    }

    public static void main(String[] args) {
        ThreadDemo threadDemo = new ThreadDemo();
        threadDemo.init();
    }


}
